namespace BanZuiCloudControlAgent.Core.Tasks.Enums
{
    /// <summary>
    /// 任务状态枚举
    /// </summary>
    public enum TaskState
    {
        /// <summary>
        /// 未知状态
        /// </summary>
        Unknown = -1,
        
        /// <summary>
        /// 待处理
        /// </summary>
        Pending = 0,
        
        /// <summary>
        /// 运行中
        /// </summary>
        Running = 1,
        
        /// <summary>
        /// 已暂停
        /// </summary>
        Paused = 2,
        
        /// <summary>
        /// 已完成
        /// </summary>
        Completed = 3,
        
        /// <summary>
        /// 已失败
        /// </summary>
        Failed = 4,
        
        /// <summary>
        /// 已取消
        /// </summary>
        Canceled = 5,
        
        /// <summary>
        /// 需要重试
        /// </summary>
        Retry = 6
    }
} 